# -*- coding: utf-8 -*-
"""
Created on Fri May  3 16:47:25 2024

@author: Administrator
"""

value = input('请输入一个长度（数值）:')
unit = input('请输入对应的单位（英寸in or 厘米cm）：')

value = float(value)

if unit == '英寸' or unit == 'in':
    # volue__convert = volue * 2.54
    print("%f英寸 = %f厘米" % (value,value*2.54))
elif unit == '厘米' or unit == 'cn':
    # volue = volue / 2.54
    print("%f厘米 = %f" % (value,value / 2.54))
else:
    print("请输入正确的单位！"